package com.wkcto.springcloud.service;

import com.wkcto.springcloud.fallback.MyFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 使用feign的客户端注解绑定了远程服务的名称
 * 远程服务的名称可以大写可以小写
 */
@FeignClient(name ="01-spring-cloud-service-provider",fallback = MyFallBack.class)
@Component
public interface HelloService {
    @RequestMapping("service/hello")
    public String hello();

}
